#!/usr/bin/python3.5
# -*- coding utf-8

from threading import Thread
import time


def my_count():
    i = 0
    for i in range(100000000):
        i += 1
        pass


def main():
    #  din
    thread_array = {}
    start_time = time.time()

    for _ in range(2):
        t = Thread(target=my_count)
        t.start()
        t.join()

    end_time = time.time()
    print('total time is {}'.format(end_time - start_time))


if __name__ == '__main__':
    main()
